package com.itsitio.registeradmin.dao.impl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.itsitio.registeradmin.dao.NewsDao;
import com.itsitio.registeradmin.dao.base.SpringHibernateDao;
import com.itsitio.registeradmin.model.News;


@Repository
@Transactional
public class NewsDaoImpl extends SpringHibernateDao<News> implements NewsDao
{
	@Autowired
	public NewsDaoImpl(SessionFactory sessionFactory) {
		super(sessionFactory);
	}	
	
	@Override
	protected Class<News> getObjetoManejado() {
			return News.class;
	}
	
}
